<?php
namespace app\model;

use think\Model;

class BocText extends Model{

    protected $table = 'boc_text';
    /**
     * 
     */
    public function get_text($type=1){
        return self::field("id,cate_id,title,desc,cover")->where(['status'=>1,'is_deleted'=>0,'ctype'=>$type])->order("sort desc,create_at desc")->select()->toArray();
    }
}